<?php

namespace App\Enums\OpenShop\FeishuMini;

use App\Models\Common\MapNationalBrandShopModel;
use App\Models\Common\MapNationalCommunityModel;
use App\Models\Common\MapNationalIndustrialParkModel;
use App\Models\Common\MapNationalStreetModel;
use App\Models\Common\MapNationalUniversitiesModel;
use App\Models\Common\MapTownshipPlanAreaModel;
use App\Models\OpenShop\Common\SiteLocationMallModel;
use App\Service\Wanggui\WangguiDotService;

class SandTableEnum
{

    const DEFAULT_COVER_IMAGE_BASIC = 'https://file.51kuafu.com/5e/d4/9a6e37f514dd4df64f0a4412fc378ed764206a6f1b5c8ca8f3cbe2c2c9a4.png';   //最基本的默认封面小夸父
    const DEFAULT_KUAFU_LOGO = 'https://file.51kuafu.com/95/7b/c8156f01193303e3efafc0d46bdcdff320e813612fc962d4400ea908999a.png';   //夸父LOGO

    const KF_MODEL_SAND_TABLE = 'kfShop';  //夸父门店标识设置

    /**
     * 根据类型匹配模型
     */
    const MODEL_SAND_TABLE_MAPPING = [
        'closeKfShop'        => self::KF_MODEL_SAND_TABLE,
        'normalKfShop'       => self::KF_MODEL_SAND_TABLE,
        'stopKfShop'         => self::KF_MODEL_SAND_TABLE,
        'siteLocationKfShop' => self::KF_MODEL_SAND_TABLE,
        'prepareKfShop'      => self::KF_MODEL_SAND_TABLE,
        'mallProgramming'    => SiteLocationMallModel::class,
        'streetProgramming'  => MapNationalStreetModel::class,
        'communityProgramming'  => MapNationalCommunityModel::class,
        'townProgramming'    => MapTownshipPlanAreaModel::class,
        'schoolProgramming'  => MapNationalUniversitiesModel::class,
        'parkProgramming'    => MapNationalIndustrialParkModel::class,
        'product'            => MapNationalBrandShopModel::class,
    ];


    /**
     * 沙盘类型
     */
    const SAND_TABLE_TYPE_MAPPING = [
        'kfShop'            => '夸父门店',
        'mallProgramming'   => '商场网规',
        'streetProgramming' => '街道网规',
        'communityProgramming' => '社区网规',
        'townProgramming'   => '乡镇网规',
        'schoolProgramming' => '高校网规',
        'parkProgramming'   => '园区网规',
        'product'           => '品牌',
    ];


    //节约代码枚举
    const MAP_MODEL_MAPPING = [
        'mallProgramming'    => SiteLocationMallModel::class,
        'streetProgramming'  => MapNationalStreetModel::class,
        'communityProgramming'  => MapNationalCommunityModel::class,
        'townProgramming'    => MapTownshipPlanAreaModel::class,
        'schoolProgramming'  => MapNationalUniversitiesModel::class,
        'parkProgramming'    => MapNationalIndustrialParkModel::class,
        'product'            => MapNationalBrandShopModel::class,
    ];


    //根据前缀区分不同的表
    const PREFIX_GET_TABLE_MODEL_MAPPING = [
        'SC' => SiteLocationMallModel::class,
        'JD' => MapNationalStreetModel::class,
        'SQ' => MapNationalCommunityModel::class,
        'XZ' => MapTownshipPlanAreaModel::class,
        'CY' => MapNationalIndustrialParkModel::class,
        'GX' => MapNationalUniversitiesModel::class,
        'PP' => MapNationalBrandShopModel::class,
    ];


    //用于聚合数据搜索
    const SAND_TABLE_POLYMERIZE = [
        'mallProgramming',
        'streetProgramming',
        'communityProgramming',
        'townProgramming',
        'schoolProgramming',
        'parkProgramming',
    ];

}
